package com.hafu.service;

import com.hafu.dao.GysinfoDao;
import com.hafu.model.Gysinfo;

import java.util.ArrayList;

public class GysinfoService {
    private GysinfoDao gysInfoDao = new GysinfoDao();
    public  Boolean addGysInfo(Gysinfo gys)
    {
        return  gysInfoDao.addGysInfo(gys);
    }
    public  Boolean deleteGysInfo(Gysinfo id)
    {
        return  gysInfoDao.deleteGysInfo(id);
    }
    public  ArrayList<Gysinfo> getGysInfoByName(Gysinfo gys)
    {
        return gysInfoDao.getGysInfoByName(gys);
    }
    public  Boolean updateGysInfo(Gysinfo gys)
    {
        return gysInfoDao.updateGysInfo(gys);
    }


    public Boolean deleteGysInfo(int chooseId) {
        return null;
    }
}

/*public class GysinfoService {
    private GysinfoDao gysInfoDao = new GysinfoDao();
    public  Boolean addGysInfo(GysInfo gys)
    {
        return  gysInfoDao.addGysInfo(gys);
    }
    public  Boolean deleteGysInfo(GysInfo id)
    {
        return  gysInfoDao.deleteGysInfo(id);
    }
    public  ArrayList<GysInfo> getGysInfoByName(GysInfo gys)
    {
        return gysInfoDao.getGysInfoByName(gys);
    }
    public  Boolean updateGysInfo(GysInfo gys)
    {
        return gysInfoDao.updateGysInfo(gys);
    }


    public Boolean deleteGysInfo(int chooseId) {
        return null;
    }
}*/
